import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path';

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
   base: '/businessreport',
  server: {
    port: 3561, // 修改端口为3001
    open: true, // 自动打开浏览器
    host: '0.0.0.0', // 支持从外部访问
  },
  resolve: {
    alias: {
      '@': resolve(__dirname, './src'),
    },
  },
})
